import request from '@/utils/request'

// 查询POCT检测项列表
export function listDetectionItems(query) {
  return request({
    url: '/system/detectionItems/list',
    method: 'post',
    data: query
  })
}

// 查询POCT检测项详细
export function getDetectionItems(id) {
  return request({
    url: '/system/detectionItems/' + id,
    method: 'get'
  })
}

// 新增POCT检测项
export function addDetectionItems(data) {
  return request({
    url: '/system/detectionItems',
    method: 'post',
    data: data
  })
}

// 修改POCT检测项
export function updateDetectionItems(data) {
  return request({
    url: '/system/detectionItems',
    method: 'put',
    data: data
  })
}

// 删除POCT检测项
export function delDetectionItems(id) {
  return request({
    url: '/system/detectionItems/' + id,
    method: 'delete'
  })
}
